Measuring psychological stress from cardiovascular and activity signals

ABSTRACT

A method and system for measuring psychological stress disclosed. In a first aspect, the method comprises determining R-R intervals from an electrocardiogram (ECG) to calculate a standard deviation of the R-R intervals (SDNN) and determining a stress feature (SF) using the SDNN. In response to reaching a threshold, the method includes performing adaptation to update a probability mass function (PMF). The method includes determining a stress level (SL) using the SF and the updated PMF to continuously measure the psychological stress. In a second aspect, the system comprises a wireless sensor device coupled to a user via at least one electrode, wherein the wireless sensor device includes a processor and a memory device coupled to the processor, wherein the memory device stores an application which, when executed by the processor, causes the processor to carry out the steps of the method.

CROSS-REFERENCE TO RELATED APPLICATION

This application is a Continuation-In-Part of U.S. application Ser. No. 15/096,163 filed on Apr. 11, 2016, which is a Continuation Application of U.S. application Ser. No. 13/664,199, filed Oct. 30, 2012, entitled “MEASURING PSYCHOLOGICAL STRESS FROM CARDIOVASCULAR AND ACTIVITY SIGNALS.” All of the above applications are hereby incorporated by reference.

FIELD OF THE INVENTION

The present invention relates to sensor devices, and more particularly, to a sensor device utilized to measure psychological stress.

BACKGROUND

Psychological stress is associated with a variety of cardiovascular diseases and quantitatively measuring stress aids in stress management. Conventionally, there are two types of psychological stress: acute stress and chronic stress. Acute stress is characterized by rapid changes in the autonomic nervous system that ready the body for “fight or flight” responses to external stimuli. Chronic stress is characterized by prolonged exposure to stressful stimuli which leads to long-term sympathetic overactivity.

Conventional methods of measuring stress calculate heart rate (HR) and heart rate variability (HRV) in the time and frequency domains. However, HR and HRV are highly variable between people. This variability issue limits the continuous monitoring and accurate measuring of a person's psychological stress levels. Therefore, there is a strong need for a cost-effective solution that overcomes the above issue by adaptively measuring individualized physiology. The present invention addresses such a need.

SUMMARY OF THE INVENTION

A method and system for measuring psychological stress are disclosed. In a first aspect, the method comprises determining R-R intervals from an electrocardiogram (ECG) to calculate a standard deviation of the R-R intervals (SDNN) and determining a stress feature (SF) using the SDNN. In response to reaching a threshold, the method includes performing adaptation to update a probability mass function (PMF). The method includes determining a stress level (SL) using the SF and the updated PMF to continuously measure the psychological stress.

In a second aspect, the system comprises a wireless sensor device coupled to a user via at least one electrode, wherein the wireless sensor device includes a processor and a memory device coupled to the processor, wherein the memory device stores an application which, when executed by the processor, causes the processor to determine R-R intervals from an electrocardiogram (ECG) to calculate a standard deviation of the R-R intervals (SDNN) and determine a stress feature (SF) using the SDNN. In response to reaching a threshold, the system further causes the processor to perform adaptation to update a probability mass function (PMF). The system further causes the processor to determine a stress level (SL) using the SF and the updated PMF to continuously measure the psychological stress.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying figures illustrate several embodiments of the invention and, together with the description, serve to explain the principles of the invention. One of ordinary skill in the art will recognize that the particular embodiments illustrated in the figures are merely exemplary, and are not intended to limit the scope of the present invention.

FIG. 1 illustrates a wireless sensor device in accordance with an embodiment.

FIG. 2 illustrates a flow chart of a method for measuring psychological stress in accordance with an embodiment.

FIG. 3 illustrates a more detailed flow chart of a method for measuring psychological stress in accordance with an embodiment.

FIG. 4 illustrates a more detailed flow chart of a method for adaptive function calibration in accordance with an embodiment.

FIG. 5 illustrates a diagram of stress level computation in accordance with an embodiment.

FIG. 6 illustrates a server in accordance with an embodiment.

FIG. 7 illustrates a wireless sensor device, use, and server in accordance with an embodiment.

DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS

The present invention relates to sensor devices, and more particularly, to a sensor device utilized to measure psychological stress. The following description is presented to enable one of ordinary skill in the art to make and use the invention and is provided in the context of a patent application and its requirements. Various modifications to the preferred embodiment and the generic principles and features described herein will be readily apparent to those skilled in the art. Thus, the present invention is not intended to be limited to the embodiments shown but is to be accorded the widest scope consistent with the principles and features described herein.

When left untreated, acute and chronic stress leads to a variety of health related challenges. Acute stress results in a “fight or flight” response to external stimuli. This response creates a short term increase in sympathetic tone and a decrease in parasympathetic tone. Acute stress is also characterized by an increased HR, increased low frequency HRV, decreased high frequency HRV, and a decreased galvanic skin response (GSR). Chronic stress results in long-term sympathetic overactivity. Chronic stress is also characterized by an increased baseline cortisol production, increased sympathetic activation, increased blood pressure, potentially decreased HRV, potential changes in HR, decreased physiological response to acute stress, and decreased baroreflex sensitivity.

HRV is related to the regulation of the heart by the autonomic nervous system. HRV is measured by a variety of time domain functions including but not limited to standard deviation of R-R intervals (SDNN), root-mean-square of successive R-R intervals (RMSSD), and a proportion of successive R-R intervals differing by a predetermined time period (e.g. >50 ms). An R-R interval is the interval from the peak of one QRS complex to the peak of the next as shown on an electrocardiogram. HRV is measured by a variety of frequency domain functions including but not limited to low frequency (LF) power from a predetermined range (e.g. 0.04 to 0.15 Hz), high frequency (HF) power from a predetermined range (e.g. 0.15 to 0.4 Hz), and a LF/HF ratio.

A method and system in accordance with the present invention utilizes a combination of heart rate (HR) and heart rate variability determined via the SDNN and specific posture analysis to continuously measure stress levels of an individual person. Changing postures from sitting to standing and then from standing to walking increases a person's HR and decreases the HRV.

The person's psychological stress is measured by determining R-R intervals from an electrocardiogram (ECG) to calculate a standard deviation of the R-R intervals (SDNN) and instantaneous heart rate (HR), wherein a stress feature (SF) is determined using the SDNN and HR. After a predetermined time interval, adaptation is performed to update a probability mass function (PMF) of the stress feature (SF) and a stress level (SL) is determined using the SF and the PMF to continuously measure the psychological stress. The SL determination normalizes stress measurements between a value range of 0 to 1 because individual stress features (SFs) are highly variable.

One of ordinary skill in the art readily recognizes that a variety of sensor devices can be utilized for the measuring of psychological stress including portable wireless sensor devices with embedded circuitry in a patch form factor and that would be within the spirit and scope of the present invention.

To describe the features of the present invention in more detail, refer now to the following description in conjunction with the accompanying Figures.

FIG. 1 illustrates a wireless sensor device 100 in accordance with an embodiment. The wireless sensor device 100 includes a sensor 102, a processor 104 coupled to the sensor 102, a memory 106 coupled to the processor 104, an application 108 coupled to the memory 106, and a transmitter 110 coupled to the application 108. The sensor 102 obtains data from the user and transmits the data to the memory 106 and in turn to the application 108. The processor 104 executes the application 108 to process ECG signal information of the user. The information is transmitted to the transmitter 110 and in turn relayed to another user or device.

In one embodiment, the sensor 102 comprises two electrodes to measure cardiac activity and an accelerometer to record physical activity and posture and the processor 104 comprises a microprocessor. One of ordinary skill in the art readily recognizes that a variety of devices can be utilized for the processor 104, the memory 106, the application 108, and the transmitter 110 and that would be within the spirit and scope of the present invention.

FIG. 2 illustrates a flow chart of a method 200 for measuring psychological stress in accordance with an embodiment. Referring to FIGS. 1 and 2 together, the method 200 comprises the wireless sensor device 100 determining R-R intervals from an electrocardiogram (ECG) to calculate a standard deviation of the R-R intervals (SDNN) and a heart rate (HR), via step 202, and determining a stress feature (SF) using the SDNN and the HR, via step 204. In response to reaching a threshold, the method 200 includes performing adaptation to update a probability mass function (PMF), via step 206. The method 200 includes determining a stress level (SL) using the SF and the PMF to continuously measure the psychological stress, via step 208.

In one embodiment, the method 200 further includes determining a posture state, wherein the psychological stress is not measured if the posture state is active. The posture state comprises a variety of states including but not limited to active (e.g. walking, running, etc.), siting, and standing. A separate probability mass function (PMF) is stored for each possible posture. In another embodiment, the method 200 further includes displaying the determined SL to a user or another device.

In one embodiment, determining R-R intervals from the ECG to calculate the SDNN and the HR via step 202 comprises coupling the wireless sensor device 100 via at least one electrode to measure the ECG of a user and detecting R peaks from the ECG within a predetermined time period. In this embodiment, the R-R intervals are calculated using the detected R peaks.

In one embodiment, determining a stress feature (SF) using the SDNN and the HR via step 204 comprises calculating a mean heart rate (HR) from the ECG within the predetermined time period and computing the SF utilizing an algorithm that includes the HR and the SDNN. In an embodiment, the algorithm is SF=HR+α*SDNN, wherein α is predetermined negative variable that allows for combining HR and SDNN.

In another embodiment, if the wireless sensor device 100 records other relevant physiologic parameters, for example, galvanic skin response (GSR), skin temperature (TEMP), breathing rate (BR), and a square root of the mean squared difference of successive NNs (RMSSD) is utilized to compute HRV, the algorithm to compute SF is a linear combination of the parameters, for example, SF=α1*HR+α2*SDNN+α3*RMSSD+α4*GSR+α5*TEMP+α6*BR. In another embodiment, the SF is a non-linear combination of these measures, for example, the algorithm is SF=HR²+α1*sqrt(SDNN)+α2*RMSSD*GSR or SF=α1*HR+α2*log(SDNN)+α3*TEMP²+α4*exp(−GSR).

In one embodiment, performing adaptation to update the PMF via step 206 comprises grouping data into a predetermined distribution, calibrating the predetermined distribution according to a detected resting heart rate, and adjusting the predetermined distribution according to additional samples received. In an embodiment, adjusting the predetermined distribution according to additional samples received comprises multiplying all bins of the predetermined distribution by 1−ε in response to data arriving and adding ε to a bin corresponding to the data.

In one embodiment, determining the stress level (SL) using the SF and the PMF via step 208 comprises adding all bins below a bin corresponding to the SF, and computing the SL utilizing an algorithm that includes a probability mass function for a given posture (PMF_(posture)), the SF, and the added bins. In this embodiment, the method 200 further includes adding a fraction of a current bin of the SL to improve granularity.

Long-term (e.g. weeks, months) changes in the mean and standard deviation of a stress feature probability mass function (PMF) reflects increases and/or decreases in stress. In one embodiment, the method 200 further includes tracking both a mean and a standard deviation of a probability mass function (PMF) as the PMF adapts over time and combining the mean and standard deviation to measure long-term stress.

FIG. 3 illustrates a more detailed flow chart of a method 300 for measuring psychological stress in accordance with an embodiment. The method 300 includes determining the current posture/activity of a user, via step 302. If the posture/activity is “active”, the method 300 does not compute a stress level. If the posture/activity is either “stand” or “sit”, the method 300 computes a stress level. The method 300 detects R-peaks within a predetermined time period, via step 304, computes R-R intervals, via step 306, computes a standard deviation of R-R intervals (SDNN), via step 308, and computes a heart rate (HR), via step 310.

Utilizing these computations, the method 300 computes a stress feature (SF) per the following equation: SF=HR+α*SDNN, via step 312. The SF is highly variable between individuals and in one embodiment, is between a predetermined range of −20 to 160. Because of this variability, a standardized stress level with a value range between 0 and 1 is computed that is relatively normalized between people. The α value is typically negative and is the weighting that allows for combining HR and SDNN and in one embodiment, α is defaulted as −0.315. The method 300 includes finding a correct bin for the SF per the following equation: IF (SF>=binedge_(posture)[i] AND SF<binedge_(posture)[i+1]), THEN B=i, via step 314.

The binedge_(posture)[i] includes the edges of the bins for the stress feature and the number of bins and spacing of bin edges is set depending upon desired granularity. In one embodiment, for 180 bins from −20 to 160, bin edges are set as −20, −19, −18 . . . , 159, 160). The bins are used for the PMF/histogram and B is the bin that the current SF falls into.

The method 300 determines whether more than a predetermined number of seconds (T) has passed since a last adaptation, via step 316. In one embodiment, T is defaulted as 600 seconds. If yes (more than T seconds have passed since the last adaptation), then the method 300 updates a probability mass function (PMF) via an adaptation function per the following equation: PMF_(posture)=PMF_(posture)*(1−ε) and PMF_(posture)[B]=PMF_(posture)[B]+ε, where ε is a “forgetting” parameter for how much the PMF/histogram is changed with each adaptation run, via step 318. In one embodiment, ε is defaulted as 0.0003. The method 300 retrieves a probability mass function (PMF) for the given posture as PMF_(posture), via step 320, which is used to calculate the stress level (SL).

The stress level (SL) measures the stress of an individual on a scale from 0 to 1, where 0 indicates no or very little stress and 1 indicates extremely high stress. The method 300 computes the SL per the following equation, via step 322:

${SL} = {{\sum\limits_{i = 1}^{B}{{PMF}_{posture}\lbrack i\rbrack}} + {\frac{{SF} - {{binedge}\;\lbrack B\rbrack}}{{{binedge}\;\left\lbrack {B + 1} \right\rbrack} - {{binedge}\;\lbrack B\rbrack}}.}}$ In this equation, all the bins below the current bin B that the SF falls into are added and a fraction of the current bin B is added to result in improved granularity. There is a separate probability mass function (PMF) for each posture because different postures have different HR and SDNN values. The method 300 determines whether the computed SL is greater than a threshold (th) for more than N minutes, via step 324. If yes, an alert is presented to the user. After the SL is computed, it is displayed via the wireless sensor device 100.

In one embodiment, the adaptive function comprises initializing, calibrating, and adapting steps. The initializing step includes beginning with a group probability mass function (PMF) that is a discretized Gaussian distribution predetermined from group training data. The calibrating step includes shifting the probability distribution according to detected resting heart rates. The adapting step includes adjusting the PMF as new samples arrive or as frequently/infrequently as desired. When new data arrives, all bins are multiplied by 1−ε (e.g. 0.9997) and ε (e.g. 0.0003) is added to a bin corresponding to the new data. This adaptation adjusts the probability distribution over the course of days to weeks to fit the particular person's average distribution of stress over the course of the day.

FIG. 4 illustrates a more detailed flow chart of a method 400 for adaptive function calibration in accordance with an embodiment. The method 400 includes initializing a stress feature probability density function (PDF) to a predetermined group model per the following equation: PDF_(SF)˜N(μ_(SFgroup), σ² _(SFgroup)), via step 402. The notation N(μ,σ²) is a normal/Gaussian distribution with mean μ and variance σ² and μ_(SFgroup) and σ² _(SFgroup) are predetermined from the group training data.

The method 400 determines a resting heart rate (HR_(rest)) of a user during a period of low or no activity, via step 404. The HR_(rest) is estimated from the user's data and can be during no activity or sleep periods. The method 400 estimates an individual heart rate (HR) PDF per the following equation: PDF_(HR)˜N(HR_(rest)+γ*σ_(HRindiv), σ² _(HRindiv)), via step 406 and estimates an individual SDNN PDF per the following equation: PDF_(SDNN)˜N(μ_(SDNNindiv), σ² _(SDNNindiv)), via step 408. The method 400 computes a new stress feature PDF by combining the determined HR and SDNN PDFs per the following equation: PDF_(SF)˜N(HR_(rest)+γ*σ_(HRindiv)+α*μ_(SDNNindiv),σ² _(HRindiv)+α²*σ² _(SDDNNindiv)), via step 410. The continuous PDF_(SF) is converted to a discretized probability distribution, or probability mass function (PMF_(SF)), via step 412. In one embodiment, the conversion is done by sampling the PDF_(SF) within a predetermined interval and normalizing the sum to 1.

In one embodiment, the γ value is a constant offset above HR_(rest) for the mean of the HR distribution (e.g. γ=2). The σ_(HRindiv), σ_(SDNNindiv), μ_(SDNNindiv) values are predetermined and fixed and are computed from the group training data. The σ_(HRindiv) and σ_(SDNNindiv) values are computed as the mean of the individual standard deviations in the group training data and the μ_(SDNNindiv) value is computed as the mean of the mean SDNN of all individuals in the group training data.

Long-term changes in the mean and standard deviation of the stress feature PMF reflect increases or decreases in stress. Increased chronic stress is seen in an upwards long-term shift of the SF probability distribution and increased chronic stress also decreases the response to acute stress, resulting in a narrow SF probability distribution or a smaller standard deviation.

In one embodiment, tracking the mean and the standard deviation of this SF probability distribution as it adapts over time and combining these results enables a measure of long-term stress per the following equation: SF_(long)=μ_(SF)−β*σ_(SF), where μ_(SF) is the mean of the SF from the current probability distribution

$\left( {\mu_{SF} = {\sum\limits_{i}{{SF}_{i} \star {{PMF}\;\left\lbrack {SF}_{i} \right\rbrack}}}} \right),$ σ_(SF) is the standard deviation of the SF from the current probability distribution

$\left. {\left( {\sigma_{SF}^{2} = {{\underset{i}{\sum(}{SF}_{i}} - \mu_{SF}}} \right)^{2} \star {{PMF}\;\left\lbrack {SF}_{i} \right\rbrack}} \right),$ and B is a positive value.

If a person's mean stress feature probability mass function/probability distribution (PMF_(SF)) increases over time, SF_(long) will increase and SF_(long) will increase. If a person becomes less responsive to acute stress due to chronic stress, the standard deviation of the SF distribution will decrease because they are not responding to different increases/decreases in acute stress, resulting in the σ_(SF) decreasing and the SF_(long) once again increasing. In one embodiment, SF_(long) is computed from the current PMF_(SF) at various time periods including but not limited to once every few days and tracked over various time periods including but not limited to weeks and months.

In one embodiment, to determine the group training data, users are subjected to alternating blocks of relaxation and stress. The blocks ranged from 3 to 7 minutes in length, relaxation involved various acts including but not limited to sitting quietly or listening to classical music, and stress involved various acts including but not limited to watching a movie clip from an active/horror movie, playing tetris, performing a stroop test, performing a series of mental arithmetic problems, and playing a competitive online real-time strategy game.

FIG. 5 illustrates a diagram 500 of stress level computation in accordance with an embodiment. In the diagram 500, the y axis represents the stress level from 0 to 1 and the x axis represents time. A predetermined window of time for computing the stress level is variable depending on the necessary time resolution and the application (e.g. gaming versus daily use). Shorter windows allow changes in stress to be detected much faster but include additional noise. During periods of stress 502, such as playing a game, the stress level increases to values closer to 1.

Additionally, while the probability mass function (PMF) is adapted for each person, the best stress feature or the best combination of HR and SDNN is learnable for each person. In one embodiment, individual learning is done via supervised learning including but not limited to Fisher Discriminants that learn the best α, which is the weighting parameter for combining HR and SDNN for each person.

In an embodiment, a semi-supervised approached is utilized to learn the best feature including but not limited to self-training where an individual performs a few minutes of a relaxation activity (e.g. metronome breathing) and a few minutes of a stressful activity (e.g. playing tetris). The two data points are used to determine an initial projection line defined by the α parameter and new data is classified and the most confident data points are used by the wireless sensor device 100 to continuously and automatically adjust the α parameter.

As above described, the method and system allow for measuring psychological stress of a user of a wireless sensor device. By determining current posture, detecting R-peaks from an ECG within a predetermined window of time to compute mean heart rate (HR) and SDNN, combining the HR and the SDNN to calculate a stress feature (SF) that is highly variable between different people, determining a current bin that the SF falls into within a predetermined bin range, and determining a latest probability mass function (PMF) and summing all bins of the PMF below the current bin, a cost-effective and continuous stress level (SL) measurement system is achieved.

The predetermined window of time includes but is not limited to 120 seconds and the predetermined bin range includes but is not limited to −20 to 160 with a width of 1. If a threshold time period has passed since last adaptation, the method and system perform adaptation of the probability mass function (PMF)/probability distribution using the current SF. The current stress level (SL) of the user is either displayed to the user via the wireless sensor device and/or triggers a warning alert if the SL is above a threshold (th) longer than a predetermined time period of N minutes.

FIG. 6 illustrates components of the server 600. As depicted, server 600 may include receiver 605, one or more processors 610, memory 615, application 620, and transmitter 630. Although illustrated as discrete components, these various components may be divided into additional components, combined into fewer components, or eliminated altogether while being contemplated within the scope of the disclosed subject matter. Further, it will be understood by those of ordinary skill in the art that each example component may be implemented, individually and/or collectively, by a wide range of hardware, software, firmware, or virtually any combination thereof.

Receiver 605 may refer to an executable component that may be designed, programmed, and/or configured to receive the electrocardiogram (ECG) data from wireless sensor devices 100. Receiver 605 may be further designed, programmed, and/or configured to receive, from multiple instances of data hub 615, electrocardiogram (ECG) data for each respective instance of wireless sensor device 100. That is, each instance of data hub 615 reports to the server electrocardiogram (ECG) data of each instance of wireless sensor device 100 that is within range for a communicative connection. Processor(s) 610 may refer to one or more processors that enable the functionality of the various components of server 600. In at least some embodiments of server 600, the processing power of processor(s) 610 may be commensurate with a quantity of instances of data hub 615 or wireless sensor device 100 in or near facility 605. Thus, processors(s) 610 may be deployed singularly or as a plurality thereof, depending on processing capabilities and/or requirements of the remaining components of server 600. The processor 610 executes the application 620 to process the received ECG signal information of the user. In particular, the processor 610 executes the application 620 to measure psychological stress by a cloud server, including receiving, by a cloud server, an electrocardiogram (ECG) data from a wireless sensor, receiving, by the cloud server, R-R intervals based on the ECG data, receiving, by the cloud server, heart rate data based on the ECG data, determining, by the cloud server, a standard deviation of the R-R intervals (SDNN) within a predetermined time period; determining, by the cloud server, a stress feature (SF) using the SDNN by calculating a mean heart rate (HR) from the heart rate data within the predetermined time period and calculating the SF utilizing an algorithm SF=HR+α*SDNN, wherein the α includes a predetermined negative variable that allows for combining the HR and the SDNN, in response to reaching a threshold, performing, by the cloud server, adaptation to update a probability mass function (PMF), and determining, by the cloud server, a stress level (SL) using the SF and the updated PMF to continuously measure the psychological stress. The information is transmitted via the transmitter 630 to another user or device.

In another exemplary embodiment, the processor 610 executes the application 620 to measure psychological stress by a cloud server, including a receiver that receives an electrocardiogram (ECG) data and R-R interval data that is calculated from the ECG data and heart rate data that is calculated from the ECG data from a wireless sensor device, and a memory device that stores an application which, in response to being executed by a processor of a cloud server, causes the processor to: determine the standard deviation of the R-R intervals (SDNN) within a predetermined time period; determine a stress feature (SF) using the SDNN by calculating a mean heart rate (HR) from the heart rate data within the predetermined time period and calculating the SF utilizing an algorithm SF=HR+α*SDNN, wherein the α includes a predetermined negative variable that allows for combining the HR and the SDNN; in response to reaching a threshold, perform adaptation to update a probability mass function (PMF), and determine a stress level (SL) using the SF and the updated PMF to continuously measure the psychological stress. Memory 615 may refer to one or more storage components of server 600 that may be designed, programmed, and/or configured to store electrocardiogram (ECG) data.

Transmitter 630 may refer to a component of server 600 that may be designed, programmed, and/or configured to transmit the determined coordinates of the particular instance of monitoring device 120, at a given time, to any entity for which the location of monitoring device is needed or otherwise desired, e.g., facility security.

FIG. 7 illustrates a wireless sensor device 100 monitoring user 101 that is communicatively connected to server 600 in accordance with an embodiment. The sensor 102 of wireless sensor device 110 obtains data from the user and stores the data in memory 106, and transmitter 110 transmits the data to receiver 605 of server 600. Further, Server 600 may refer to a cloud server that is communicatively connected to, at least, multiple instances of data hub 615 or wireless sensor device 100 located within facility 605. The multiple instances of data hub 615 may also be communicatively connected to wireless sensor device 100. Server 600 may represent one or more servers or cloud servers located inside or are otherwise associated with facility 605 and/or one or more cloud servers or a component of a cloud system. Although the embodiments are not limited to just one instance of server 600, unless context otherwise requires, reference herein will be made to a singular server 600.

A method and system for measuring psychological stress has been disclosed. Embodiments described herein can take the form of an entirely hardware implementation, an entirely software implementation, or an implementation containing both hardware and software elements. Embodiments may be implemented in software, which includes, but is not limited to, application software, firmware, resident software, microcode, etc.

The steps described herein may be implemented using any suitable controller or processor, and software application, which may be stored on any suitable storage location or computer-readable medium. The software application provides instructions that enable the processor to cause the receiver to perform the functions described herein.

Furthermore, embodiments may take the form of a computer program product accessible from a computer-usable or computer-readable storage medium providing program code or program instructions for use by or in connection with a computer or any instruction execution system. For the purposes of this description, a computer-usable or computer-readable storage medium can be any apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.

The computer-readable storage medium may be an electronic, magnetic, optical, electromagnetic, infrared, semiconductor system (or apparatus or device), or a propagation medium. Examples of a computer-readable storage medium include a semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read-only memory (ROM), a rigid magnetic disk, and an optical disk. Current examples of optical disks include DVD, compact disk-read-only memory (CD-ROM), and compact disk-read/write (CD-R/W).

Although the present invention has been described in accordance with the embodiments shown, one of ordinary skill in the art will readily recognize that there could be variations to the embodiments and those variations would be within the spirit and scope of the present invention. Accordingly, many modifications may be made by one of ordinary skill in the art without departing from the spirit and scope of the appended claims. 

What is claimed is:
 1. A method to measure psychological stress by a cloud server, comprising: receiving, by a cloud server, electrocardiogram (ECG) data from a wireless sensor; receiving, by the cloud server, R-R intervals based on the ECG data; receiving, by the cloud server, heart rate data based on the ECG data; determining, by the cloud server, a standard deviation of the R-R intervals (SDNN) within a predetermined time period; determining, by the cloud server, a stress feature (SF) using the SDNN by calculating a mean heart rate (HR) from the heart rate data within the predetermined time period and calculating the SF utilizing an algorithm SF=HR+α*SDNN, wherein the α includes a predetermined negative variable that allows for combining the HR and the SDNN; in response to reaching a threshold, performing, by the cloud server, adaptation to update a probability mass function (PMF); and determining, by the cloud server, a stress level (SL) using the SF and the updated PMF to continuously measure the psychological stress.
 2. The method of claim 1, further comprising: receiving, by the cloud server, posture data, wherein the psychological stress is not measured if a posture state is active; and displaying the determined posture state to a user or another device.
 3. The method of claim 2, wherein the posture state includes any of active, sitting, standing, leaning, and lying down.
 4. The method of claim 1, wherein the performing adaptation to update the PMF comprises: grouping data into a predetermined distribution; calibrating the predetermined distribution according to a detected resting heart rate; and adjusting the predetermined distribution according to additional samples received.
 5. The method of claim 4, wherein the adjusting the predetermined distribution according to the additional samples received comprises: in response to data arriving, multiplying all bins of the predetermined distribution by 1-ε; and adding ε to a bin corresponding to the data, wherein the ε includes a forgetting parameter for how much the PMF changes with each adaptation run.
 6. The method of claim 1, wherein the determining the stress level (SL) using the SF and the PMF further comprises: adding all bins below a bin corresponding to the SF; and computing the SL utilizing an algorithm that includes a probability mass function for a given posture (PMF_(posture)), the SF, and the added bins.
 7. The method of claim 6, further comprising: adding a fraction of a current bin to improve granularity.
 8. The method of claim 1, further comprising: tracking both a mean and a standard deviation of a probability distribution as the probability distribution adapts over time; and combining the mean and the standard deviation to measure long-term stress.
 9. A system to measure psychological stress, comprising: a wireless sensor device coupled to a user via at least one electrode, wherein the wireless sensor device includes a transmitter; and a cloud server including: a processor, receiver, and memory device, wherein the receiver receives electrocardiogram (ECG) data from the wireless sensor device and the R-R interval data based on the ECG data and heart rate data based on the ECG data, wherein the memory device stores an application which, in response to being executed by the processor, causes the processor to: determine the standard deviation of the R-R intervals (SDNN) within a predetermined time period; determine a stress feature (SF) using the SDNN by calculating a mean heart rate (HR) from the heart rate data within the predetermined time period and calculating the SF utilizing an algorithm SF=HR+α*SDNN, wherein the α includes a predetermined negative variable that allows for combining the HR and the SDNN; in response to reaching a threshold, perform adaptation to update a probability mass function (PMF); and determine a stress level (SL) using the SF and the updated PMF to continuously measure the psychological stress.
 10. The system of claim 9, wherein the application further causes the processor to: determine, by at least one of the wireless sensor device or cloud server, a posture state, wherein the psychological stress is not measured if the posture state is active; and transmit the determined posture state to a device display.
 11. The system of claim 10, wherein the posture state includes any one of: active, sitting, standing, leaning and lying down.
 12. The system of claim 9, wherein the adaptation performance to update the PMF, includes: grouping data into a predetermined distribution; calibrating the predetermined distribution according to a detected resting heart rate; and adjusting the predetermined distribution according to additional samples received.
 13. The system of claim 12, wherein the adjustment of the predetermined distribution according to additional samples received, comprises: in response to data arriving, multiplying all bins of the predetermined distribution by 1-ε; and adding ε to a bin corresponding to the data, wherein the ε includes a forgetting parameter for how much the PMF changes with each adaptation run.
 14. The system of claim 9, wherein the determination of the stress level (SL) using the SF and the PMF, comprises: adding all bins below a bin corresponding to the SF; and computing the SL utilizing an algorithm that includes a probability mass function for a given posture (PMF_(posture)), the SF, and the added bins.
 15. The system of claim 14, wherein the application further causes the processor to: add a fraction of a current bin to improve granularity.
 16. A cloud server that determines psychological stress, comprising: a receiver that receives electrocardiogram (ECG) data and R-R interval data that is calculated from the ECG data and heart rate data that is calculated from the ECG data from a wireless sensor device; and a memory device that stores an application which, in response to being executed by a processor of a cloud server, causes the processor to: determine the standard deviation of the R-R intervals (SDNN) within a predetermined time period; determine a stress feature (SF) using the SDNN by calculating a mean heart rate (HR) from the heart rate data within the predetermined time period and calculating the SF utilizing an algorithm SF=HR+α*SDNN, wherein the a includes a predetermined negative variable that allows for combining the HR and the SDNN; in response to reaching a threshold, perform adaptation to update a probability mass function (PMF); and determine a stress level (SL) using the SF and the updated PMF to continuously measure the psychological stress.
 17. The cloud server of claim 16, wherein the application further causes the processor to: determine a posture state, wherein the psychological stress is not measured if the posture state is active, and wherein the posture state includes any one of: active, sitting, standing, leaning or lying down; and transmit the determined SL to a device display.
 18. The cloud server of claim 16, wherein the adaptation performance to update the PMF, includes: grouping data into a predetermined distribution; calibrating the predetermined distribution according to a detected resting heart rate; and adjusting the predetermined distribution according to additional samples received, wherein the adjusting the predetermined distribution according to additional samples received includes: in response to data arriving, multiplying all bins of the predetermined distribution by 1-ε; and adding ε to a bin corresponding to the data, wherein the ε includes a forgetting parameter for how much the PMF changes with each adaptation run.
 19. The cloud server of claim 16, wherein the determination of the stress level (SL) using the SF and the PMF, comprises: adding all bins below a bin corresponding to the SF; and computing the SL utilizing an algorithm that includes a probability mass function for a given posture (PMF_(posture)), the SF, and the added bins, and wherein the application further causes the processor to: add a fraction of a current bin to improve granularity.
 20. A method to measure psychological stress by a cloud server, comprising: receiving, by a cloud server, electrocardiogram (ECG) data from a wireless sensor; determining, by the cloud server, R-R intervals from the electrocardiogram (ECG) by detecting R peaks from the ECG data within a predetermined time period; calculating, by the cloud server, a standard deviation of the R-R intervals (SDNN) using the detected R peaks calculating a mean heart rate (HR) from the ECG data within the predetermined time period; calculating, by the cloud server, a stress feature (SF) by utilizing an algorithm SF=HR+α*SDNN, wherein the α includes a predetermined negative variable that allows for combining the HR and the SDNN; in response to reaching a threshold, performing, by the cloud server, adaptation to update a probability mass function (PMF); and determining, by the cloud server, a stress level (SL) using the SF and the updated PMF to continuously measure the psychological stress. 